<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<!-- Meta, title, CSS, favicons, etc. -->
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">

		<title>{{config("admins.globals.web_title")}}</title>

		<!-- Bootstrap -->
		<link href="/admins/vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
		<!-- Font Awesome -->
		<link href="/admins/vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
		<!-- NProgress -->
		<link href="/admins/vendors/nprogress/nprogress.css" rel="stylesheet">
		<!--iCheck-->
		<link href="/admins/vendors/iCheck/skins/flat/green.css" rel="stylesheet">
		
		<!-- Custom Theme Style -->
		<link href="/admins/css/custom.css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="/admins/css/logo.css"/>
		@yield('css')
	</head>

	<body class="nav-md">
		<div class="container body">
			<div class="main_container">
				<div class="col-md-3 left_col">
					<div class="left_col scroll-view">
						<div class="navbar nav_title" style="border: 0;">
							<a href="javascript:;" class="site_title">
								<img class="icon" src="/admins/images/weixinqianglogo.png"/>
							</a>
						</div>

						<div class="clearfix"></div>

						<br />

						@include('admin.layouts.sidebar')
						
					</div>
				</div>

				<!-- top navigation -->
				<div class="top_nav">
					<div class="nav_menu">
						<nav>
							<div class="nav toggle">
								<a id="menu_toggle">
									<i class="fa fa-bars"></i>
								</a>
							</div>

							<ul class="nav navbar-nav navbar-right">
								<li class="">
									<a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
										
										{{auth()->user()->name}} <span class=" fa fa-angle-down"></span>
									</a>
									<ul class="dropdown-menu dropdown-usermenu pull-right">
										<li>
											<a href="{{route('personal.index')}}">
												个人设置
											</a>
										</li>
										
										<li>
											<a href="{{route('personal.psd')}}">
												修改密码
											</a>
										</li>
										<li>
											<a href="{{ url('/logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
												<i class="fa fa-sign-out pull-right"></i> 登出
											</a>
											<form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
												{{ csrf_field() }}
											</form>
										</li>
									</ul>
								</li>
							</ul>
						</nav>
					</div>
				</div>
				<!-- /top navigation -->

				<!-- page content -->
				<div class="right_col" role="main">
					@yield('content')
				</div>
				<!-- /page content -->

				<!-- footer content -->
				<footer>
					<div class="pull-right">
						(c) Copyright 2017 august. All Rights Reserved. 
					</div>
					<div class="clearfix"></div>
				</footer>
				<!-- /footer content -->
			</div>
		</div>

		<!-- jQuery -->
		<script src="/admins/vendors/jquery/dist/jquery.min.js"></script>
		<!-- Bootstrap -->
		<script src="/admins/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
		<!-- FastClick -->
		<script src="/admins/vendors/fastclick/lib/fastclick.js"></script>
		<!-- NProgress -->
		<script src="/admins/vendors/nprogress/nprogress.js"></script>
		<!--layer-->
		<script src="/admins/vendors/layer/layer.js"></script>
		<!-- iCheck -->
    		<script src="/admins/vendors/iCheck/icheck.min.js"></script>
		<!-- Custom Theme Scripts -->
		<script src="/admins/js/custom.js"></script>
		@yield('js')
	</body>
</html>
